Skip to main content

mergCL

Type

library

Description

mergCL is an iOS external for LiveCode that implements significant location change and region monitoring. Both of these services from the CoreLocation framework will start your app in the background if it's not running when the location event occurs. For this external to function reliably the exits on suspend key of the apps plist must be removed.

Associated Syntax

Command

NameSummarySyntax
mergCLStartLocationManagerStart the location managermergCLStartLocationManager <pPurpose>, [<pAuthorizationType>]
mergCLStartMonitoringRegionmergCLStartMonitoringRegion <pIdentifier>, <pLocation>, <pRadius>, <pDesiredAccuracy>
mergCLStopMonitoringRegionmergCLStopMonitoringRegion <pIdentifier>
mergCLRequestRegionStatusThis command requests the core location framework determine if the user is inside or outside the region mergCLRequestRegionStatus <pRegionIdentifier>
mergCLStartMonitoringBeaconRegionmergCLStartMonitoringBeaconRegion <pIdentifier>, <pProximityUUID>, <pMajor>, <pMinor>
mergCLStartRangingBeaconsInRegionmergCLStartRangingBeaconsInRegion <pIdentifier>, <pProximityUUID>, [<pMajor>], [<pMinor>]
mergCLStopRangingBeaconsInRegionmergCLStopRangingBeaconsInRegion <pIdentifier>
mergCLRequestBeaconRegionStatusThis command requests the core location framework determine if the user is inside or outside the region mergCLRequestBeaconRegionStatus <pRegionIdentifier>
mergCLBroadcastBeaconmergCLBroadcastBeacon <pIdentifier>, <pProximityUUID>, <pMajor>, <pMinor>
mergCLStartMonitoringSignificantLocationChangesmergCLStartMonitoringSignificantLocationChanges
mergCLStopMonitoringSignificantLocationChangesmergCLStopMonitoringSignificantLocationChanges
mergCLStartMonitoringVisitsRecieve the mergCLVisit message when a the system detects a new visit related event mergCLStartMonitoringVisits
mergCLStopMonitoringVisitsStop monitoring vor visit eventsmergCLStopMonitoringVisits
mergCLGeocodeRequest the placemarks found when searching for the address stringmergCLGeocode <pAddressString>
mergCLReverseGeocodeRequest the placemarks found when searching for the locationmergCLReverseGeocode <pCoordinate>

Message

NameSummarySyntax
mergCLAuthorizationChangedThis message is sent to the object that started the location manager when the authorization status of location services changes mergCLAuthorizationChanged <pStatus>
mergCLRegionEnteredThis message is sent to the object that started the location manager when a monitored region is entered mergCLRegionEntered <pIdentifier>, <pLocation>, <pRadius>
mergCLRegionExitedThis message is sent to the object that started the location manager when a monitored region is exited mergCLRegionExited <pIdentifier>, <pLocation>, <pRadius>
mergCLRegionMonitoringFailedThis message is sent to the object that started the location manager when region monitoring fails for a specific region mergCLRegionMonitoringFailed <pIdentifier>, <pLocation>, <pRadius>, <pError>
mergCLBeaconRegionEnteredThis message is sent to the object that started the location manager when a monitored region is entered mergCLBeaconRegionEntered <pIdentifier>, <pProximityUUID>, <pMajor>, <pMinor>
mergCLBeaconRegionExitedThis message is sent to the object that started the location manager when a monitored region is exited mergCLBeaconRegionExited <pIdentifier>, <pProximityUUID>, <pMajor>, <pMinor>
mergCLBeaconRegionMonitoringFailedForRegionThis message is sent to the object that started the location manager when region monitoring fails for a specific region mergCLBeaconRegionMonitoringFailedForRegion <pIdentifier>, <pProximityUUID>, <pMajor>, <pMinor>, <pError>
mergCLDidRangeBeaconsThis message is sent to the object that started the location manager when beacons are ranged mergCLDidRangeBeacons <pRangedBeacons>
mergCLLocationChangedThis message is sent to the object that started the location manager when the device location significantly changes mergCLLocationChanged <pLocation>
mergCLVisitThis message is sent to the object that started the location manager when a visit event is detected mergCLVisit <pLocation>, <pArrivalDate>, <pDepartureDate>
mergCLGeocodeResultThis message is sent to the object that called mergCLGeocode when the query returns from the server mergCLGeocodeResult <pResult>
mergCLGeocodeResultThis message is sent to the object that called mergCLGeocode when the query returns from the server mergCLGeocodeResult <pResult>

Function

NameSummarySyntax
mergCLIsRegionMonitoringAvailablemergCLIsRegionMonitoringAvailable()
mergCLMaximumRegionMonitoringDistancemergCLMaximumRegionMonitoringDistance()
mergCLMonitoredRegionsmergCLMonitoredRegions()
mergCLCoordinateWithinmergCLCoordinateWithin(<pTestCoordinate>, <pCenterCoordinate>, <pRadius>)
mergCLIsBeaconRegionMonitoringAvailablemergCLIsBeaconRegionMonitoringAvailable()
mergCLIsBeaconRegionRangingAvailablemergCLIsBeaconRegionRangingAvailable()
mergCLMonitoredBeaconRegionsmergCLMonitoredBeaconRegions()
mergCLRangedBeaconRegionsmergCLRangedBeaconRegions()
mergCLSignificantLocationChangeMonitoringAvailablemergCLSignificantLocationChangeMonitoringAvailable()
mergCLDistanceBetweenCalculate the distance between to coordinates taking into account the curvature of the earth mergCLDistanceBetween(<pCoordinateFrom>, <pCoordinateTo>)
Thank you for your feedback!

Was this page helpful?